package com.nhim.cms.web;

import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.markup.html.basic.Label;

import com.nhim.cms.CustomWidgetProperty;
import com.nhim.cms.CustomWidgetProperty.EDataType;
import com.nhim.cms.CustomWidgetProperty.EDisplayType;

public class TestPanel extends BasePanel {

	private static final long serialVersionUID = 1L;
	private String link = "";

	public TestPanel(String id) {
		super(id);
		
	}
	public void setLink(String value)
	{
		this.link = value;
	}

	public List<CustomWidgetProperty> getAllProperties() {
		List<CustomWidgetProperty> list = new ArrayList<CustomWidgetProperty>();
		
		CustomWidgetProperty linkProperty = new CustomWidgetProperty("setLink","Please enter new link:",EDataType.String,EDisplayType.Textarea,new ArrayList<String>());
		CustomWidgetProperty NameProperty = new CustomWidgetProperty("setName","Please enter your name:",EDataType.String,EDisplayType.Textbox,new ArrayList<String>());
		list.add(linkProperty);
		list.add(NameProperty);
		return list;
	}
	@Override
	public void init() {
		add(new Label("markup", this.link).setEscapeModelStrings(false));
		
	}

}
